package com.ruibang.glass.material.controller.container;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruibang.glass.material.domain.req.ContainerTransferRecordReq;
import com.ruibang.glass.material.entity.ContainerTransferRecord;
import com.ruibang.glass.material.service.ContainerTransferRecordService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-03-26  14:33
 * @Description: TODO
 * @Version: 1.0
 */

@RestController
@RequestMapping("/api/material/container/transfer")
@Api(value = "容器转移记录控制器", tags = {"容器转移记录控制器"})
public class ContainerTransferRecordController {

    @Autowired
    private ContainerTransferRecordService containerTransferRecordService;

    @PostMapping("/pageQuery")
    @ApiOperation(value = "分页列表查询容器管理表", notes = "分页列表查询容器管理表")
    public ResultBody<IPage<ContainerTransferRecord>> pageQuery(@RequestBody ContainerTransferRecordReq containerTransferRecordReq) {
        return ResultBody.success(containerTransferRecordService.pageQuery(containerTransferRecordReq));
    }


}
